package com.mid;

/**
 * Created by Lxk on 2020/2/23.
 */
public class Solution343 {

    public int integerBreak(int n) {

        if (n == 2) {
            return 2;
        }
        if (n == 3) {
            return 3;
        }
        if (n == 4) {
            return 4;
        }
        return 3 * integerBreak(n - 3);
    }

    public static void main(String[] args) {
        Solution343 solution343 = new Solution343();
        System.out.println(solution343.integerBreak(10));
    }

}
